<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>thymeleaf login</title>
    <link type="text/css" th:href="@{/asserts/css/login.css}" rel="stylesheet">
</head>
<body>
    <form class="login_main" th:action="@{/logincheck}" method="post">
        <p class="login_info">Sign in</p>
        <input class="login_textbox" type="text" name="username" placeholder="username" required>
        <input class="login_textbox" type="password" name="password" placeholder="password" required>
        <button class="login_btn" type="submit">sign in</button>
        <p style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
    </form>
</body>
</html>